$(function() {
	var ctx = '/soagov';
	App.soagov = {
		'ctx': ctx,
		'home' : {
			url: ctx + '/home.htm'
		},
		'faceView' : {
			url: ctx + '/face/view.htm'
		},
		'faceEdit' : {
			url: ctx + '/face/edit.htm'
		},
		'faceParam' : {
			url: ctx + '/face/param.htm'
		},
		'faceImplEdit' : {
			url: ctx + '/face/impl/edit.htm'
		},
		'faceImplPicker' : {
			url: ctx + '/face/impl/picker.htm'
		},
		'libFacePicker' : {
			url: ctx + '/lib/face/picker.htm'
		},
		'soagovIndex' : {
			url: ctx + '/soagov/index.htm'
		},
		'flowEdit' : {
			url: ctx + '/flow/edit.htm'
		},
		'flowView' : {
			url: ctx + '/flow/view.htm'
		},
		'nodeProp' : {
			url: ctx + '/flow/prop.htm'
		},
		'nodePmap' : {
			url: ctx + '/flow/pmap.htm'
		},
		'flowGenPreview' : {
			url: ctx + '/flow/gen/preview.htm'
		},
		'flowPubResult' : {
			url: ctx + '/flow/pub/result.htm'
		},
		'svcExeQry': {
			url: ctx + '/svc/exe/query.htm'
		},
		'svcPicker': {
			url: ctx + '/app/svc/lib/index.htm'
		},
		'appSvcIndex' : {
			url: ctx + '/app/svc/index.htm'
		},
		'appLibFacePicker' : {
			url: ctx + '/app/lib/face/picker.htm'
		},
		'svcEdit' : {
			url: ctx + '/svc/edit.htm'
		},
		'svcIndex' : {
			url: ctx + '/svc/index.htm'
		},
		'svcInstIndex' : {
			url: ctx + '/svc/inst/index.htm'
		},
		'svcInstMock': {
			title: '服务结果模拟设置',
			url: ctx + '/svc/inst/mock.htm'
		},
		'svcInstLimit': {
			title: '服务限流设置',
			url: ctx + '/svc/inst/limit.htm'
		},
		'svcInstBw': {
			title: '服务黑白名单设置',
			url: ctx + '/svc/inst/bw.htm'
		},
		'svcInstMonitor': {
			url: ctx + '/svc/inst/monitor.htm'
		},
		'svcTraceIndex': {
			url: ctx + '/svc/trace/index.htm'
		},
		'svcTraceQuery': {
			title: '自定义调用链查询',
			url: ctx + '/svc/trace/query.htm'
		},
		'svcTraceView' : {
			url: ctx + '/svc/trace/view.htm'
		},
		'comIndex' : {
			url: ctx + '/com/index.htm'
		},
		'comEdit' : {
			url: ctx + '/com/edit.htm'
		},
		'comPicker' : {
			url: ctx + '/com/picker.htm'
		},
		'macRpcIndex' : {
			url: ctx + '/mac/rpc/index.htm'
		},
		'refs' : {
			url: ctx + '/mac/rpc/refs.htm'
		},
		'macRpcMain' : {
			url: ctx + '/mac/rpc/main.htm'
		},
		'macRpcSvc' : {
			url: ctx + '/mac/rpc/svc.htm'
		},
		'macRpcSvcIp' :{
			url: ctx + '/mac/rpc/svcip.htm'
		},
		'protocolIndex' : {
			url: ctx + '/protocol/index.htm'
		},
		'svcProtocolEdit' : {
			url: ctx + '/app/svc/lib/edit.htm'
		},
		'appIndex': {
			tabs: [{
				code: 'svcPl', title: '服务列表',
				auth: 'app.svc.list',
				render: function(p, c) {
					App.show({
						ctx: 'soagov',
						action: 'appSvcIndex',
						params: { app: c.params }
					}, $.noop, p);
				}
			}]
		},
		'projIndex': {
			tabs: [{
				code: 'protocolPl', title: '协议列表',
				auth: 'app.svc.list',
				render: function(p, c) {
					App.show({
						ctx: 'soagov',
						action: 'protocolIndex',
						params:  c.params 
					}, $.noop, p);
				}
			}]
		},
		'protocolEdit': {
			url: ctx + '/protocol/edit.htm'
		}
	}
});